package com.bountytask.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Task {
    @TableId("id")
    private long id;

    @TableField("title")
    private String title;

    @TableField("illustrate")
    private String illustrate;

    @TableField("bounty")
    private float bounty;

    @TableField("task_number")
    private int taskNumber;

    @TableField("start_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date startTime;

    @TableField("deadline")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date deadline;

    @TableField("request")
    private String request;

    @TableField("category")
    private String category;

    @TableField("contact")

    private String contact;
    @TableField("label")
    private String label;

    @TableField("total")
    private float total;

    @TableField("finish_num")
    private int finishNum;

    @TableField("get_num")
    private int getNum;

    @TableField("task_status")
    private int taskStatus;
}
